package o;

import android.graphics.Paint;
import android.graphics.Typeface;
import android.widget.TextView;

public final class cjz {
    private static Typeface ˏ;

    public static void ˏ(TextView textView) {
        if (textView != null) {
            textView.setTypeface(Typeface.DEFAULT);
        }
    }

    public static void ˎ(TextView textView) {
        try {
            if (azc.ˎ().ॱ() >= 11) {
                if (ˏ == null) {
                    ˏ = Typeface.create("HwChinese-medium", 0);
                }
                if (ˏ != null) {
                    textView.setTypeface(ˏ);
                }
            }
        } catch (Exception e) {
            Logger.e("TextTypefaceUtil", "setSubTextType TextView Exception" + e.toString());
        }
    }

    public static void ˏ(Paint paint) {
        try {
            if (azc.ˎ().ॱ() >= 11) {
                if (ˏ == null) {
                    ˏ = Typeface.create("HwChinese-medium", 0);
                }
                if (ˏ != null) {
                    paint.setTypeface(ˏ);
                }
            }
        } catch (Exception e) {
            Logger.e("TextTypefaceUtil", "setSlimSubTextType Paint Exception" + e.toString());
        }
    }
}
